package com.guguju.ssms.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by dell on 2022-5-17.
 */
public class UserDayProjectData implements Parcelable {

    /**




     {
     "data": {
     "userDayProjectList": [
     {
     "dayProjectId": 3,
     "dayProjectName": "ffffff",
     "dayProjectType": 3,
     "dayProjectTypeStr": "ddd",
     "projectId": 2,
     "projectName": "",
     "startTime": "2022-05-05T22:15:13",
     "endTime": "2022-05-05T22:15:13",
     "startTimeStr": "2022-05-05 22:15:13",
     "endTimeStr": "2022-05-05 22:15:13",
     "statusType": 10,
     "statusTypeStr": "任务已下发",
     "issueTime": "2022-05-05T23:48:33",
     "issueTimeStr": "2022-05-05 23:48:33"
     },
     {
     "dayProjectId": 2,
     "dayProjectName": "ffff22222",
     "dayProjectType": 2,
     "dayProjectTypeStr": "抹灰",
     "projectId": 2,
     "projectName": "项目2",
     "startTime": "2022-05-05T19:51:34",
     "endTime": "2022-05-05T19:51:34",
     "startTimeStr": "2022-05-05 19:51:34",
     "endTimeStr": "2022-05-05 19:51:34",
     "statusType": 0,
     "statusTypeStr": "新任务",
     "issueTime": "0001-01-01T00:00:00",
     "issueTimeStr": "0001-01-01 00:00:00"
     },
     {
     "dayProjectId": 1,
     "dayProjectName": "子任务1",
     "dayProjectType": 1,
     "dayProjectTypeStr": "浇筑",
     "projectId": 1,
     "projectName": "项目计划1",
     "startTime": "2022-05-05T17:23:01",
     "endTime": "2022-05-05T17:23:01",
     "startTimeStr": "2022-05-05 17:23:01",
     "endTimeStr": "2022-05-05 17:23:01",
     "statusType": 0,
     "statusTypeStr": "新任务",
     "issueTime": "0001-01-01T00:00:00",
     "issueTimeStr": "0001-01-01 00:00:00"
     }
     ],
     "userDayProjectCount": 3
     },
     "code": 200,
     "msg": "操作成功!"
     }
     */

    private int userDayProjectCount;
    private List<UserDayProject> userDayProjectList;

    public int getUserDayProjectCount() {
        return userDayProjectCount;
    }

    public void setUserDayProjectCount(int userDayProjectCount) {
        this.userDayProjectCount = userDayProjectCount;
    }

    public List<UserDayProject> getUserDayProjectList() {
        return userDayProjectList;
    }

    public void setUserDayProjectList(List<UserDayProject> userDayProjectList) {
        this.userDayProjectList = userDayProjectList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.userDayProjectCount);
        dest.writeList(this.userDayProjectList);
    }

    public UserDayProjectData() {
    }

    protected UserDayProjectData(Parcel in) {
        this.userDayProjectCount = in.readInt();
        this.userDayProjectList = new ArrayList<UserDayProject>();
        in.readList(this.userDayProjectList, UserDayProject.class.getClassLoader());
    }

    public static final Parcelable.Creator<UserDayProjectData> CREATOR = new Parcelable.Creator<UserDayProjectData>() {
        @Override
        public UserDayProjectData createFromParcel(Parcel source) {
            return new UserDayProjectData(source);
        }

        @Override
        public UserDayProjectData[] newArray(int size) {
            return new UserDayProjectData[size];
        }
    };
}
